<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 211px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>项目名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="项目名称" type="text" maxlength="50"
			class="input_css required" style="width: 710px;" 
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" width="20%"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5">
		    <c:set var="submit_date">
			    <x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> 
			    <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" size="33" className="required date"
				label="申报日期"></cpt:date>
		&nbsp;</td>	
	</tr>
	<tr>
		<td colspan="6" class="t_bar">&nbsp;公共服务平台基本情况</td>
	</tr>
	<tr>
		<td nowrap align="right" width="20%"><span class="color_red">*</span>建设完成时间：</td>
		<td nowrap width="30%" colspan="2"><c:set var="finished_date">
				<x:out select="$xmlData/data/proposal/finished_date" />
			</c:set><cpt:date id="finished_date" name="proposal/finished_date"
				value="${finished_date}" 
				className="required date" label="建设完成时间"></cpt:date>
     </td>
     <td nowrap width="10%" align="right"><span class="color_red">*</span>场地面积：</td>
		<td nowrap ><input 
			name="proposal/site_area" label="场地面积" type="text" 
			class="input_css required" style="text-align:right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/site_area" />" />平方米</td>
    </tr>
    <tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>服务类型：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="协同研发"
				value="01" /><span style="vertical-align: middle;">协同研发</span>
		</label> <label> <input type="checkbox" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="技术转移"
				value="02" /><span style="vertical-align: middle;">技术转移</span>
		</label> <label> <input type="checkbox" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="检验检测"
				value="03" /><span style="vertical-align: middle;">检验检测</span>
		</label> <label> <input type="checkbox" class="do " id="advant_04"
				style="vertical-align: middle;" name="advant" label="专利标准"
				value="04" /><span style="vertical-align: middle;">专利标准</span>
		</label> <label> <input type="checkbox" class="do " id="advant_05"
				style="vertical-align: middle;" name="advant" label="文献数据"
				value="05" /><span style="vertical-align: middle;">文献数据</span>
		</label> <label> <input type="checkbox" class="do " id="advant_06"
				style="vertical-align: middle;" name="advant" label="科技金融" value="06" /><span
				style="vertical-align: middle;">科技金融</span>
		</label><label> <input type="checkbox" class="do " id="advant_07"
				style="vertical-align: middle;" name="advant" label="交流培训" value="07" /><span
				style="vertical-align: middle;">交流培训</span>
		</label><label> <input type="checkbox" class="do " id="advant_08"
				style="vertical-align: middle;" name="advant" label="推广展示" value="08" /><span
				style="vertical-align: middle;">推广展示</span>
		</label> <br/>
		<label><input type="checkbox" class="do " id="advant_09"
				style="vertical-align: middle;" name="advant" label="其他" value="09"  onclick="showHidden('advant','09','other');"/><span
				style="vertical-align: middle;">其他</span>
		</label><span id="other_09" style="display:none">（<span class="color_red">*</span>请注明）：<input type="text"  id="advant_other" label="服务类型选择其他时，请注明" maxlength="50"   name="proposal/basic/advant_other" value="<x:out select="$xmlData/data/proposal/basic/advant_other" />"/></span> 
		<input type="hidden" name="proposal/basic/advant_value" id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/advant_value" />"
			label="服务类型" /> 
	<input type="hidden" name="proposal/basic/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/basic/advant_name" />"
			label="服务类型" /></td>
	</tr>
	<tr>
		<td colspan="6" >&nbsp;<span class="color_red">*</span>服务内容（500字左右）</td>
	</tr>
	<tr>
		<td colspan="6"><textarea id="brief" name="proposal/service_content" rows='7' cols='150' class="required textarea maxlength:500" label="服务内容"><x:out select="$xmlData/data/proposal/service_content" /></textarea>
		                 <input type="hidden" name="proposal/service_content_hidden" value="">
		</td>
	</tr>
	<tr>
	<td nowrap align="right"><span class="color_red">*</span>服务制度：</td>
	<td colspan="5">
	<c:set var="service_system_value"><x:out select="$xmlData/data/proposal/service_system_value" /></c:set> 
<cpt:select id="service_system" key="whether"  value="${service_system_value}" className="required" label="服务制度"></cpt:select>
<input type="hidden"  name="proposal/service_system_value" value="${service_system_value}" />
<input type="hidden" name="proposal/service_system_name" value="<x:out select="$xmlData/data/proposal/service_system_name" />" />
</td>
	</tr>
	<tr>
		<td colspan="6" >&nbsp;<span class="color_red">*</span>收费标准（500字左右）</td>
	</tr>
	<tr>
		<td colspan="6"><textarea name="proposal/fee_standards" rows='7' cols='150' class="required textarea maxlength:500" label="收费标准"><x:out select="$xmlData/data/proposal/fee_standards" /></textarea>
		 <input type="hidden" name="proposal/fee_standards_hidden" value="">
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>申请资助金额:</td>
	<td><input id="total_funds"
			name="proposal/total_funds" label="申请资助金额" type="text" maxlength="50"
			class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/proposal/total_funds" />" />万元</td>
	</tr>
	<tr>
		<td colspan="6" class="t_bar">&nbsp;园区基本信息</td>
	</tr>
   <tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区名称：</td>
		<td nowrap colspan="5"><input 
			name="proposal/park_name" label="园区名称" type="text" maxlength="50"
			class="input_css required" style="width: 710px;" 
			value="<x:out select="$xmlData/data/proposal/park_name" />" /></td>
	</tr>
    <tr>
		<td nowrap align="right" width="20%"><span class="color_red">*</span>园区组建时间：</td>
		<td nowrap width="30%" ><c:set var="park_date">
				<x:out select="$xmlData/data/proposal/park_date" />
			</c:set><cpt:date id="park_date" name="proposal/park_date" value="${park_date}" className="required date" label="园区组建时间"></cpt:date>

		</td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>孵化面积：</td>
		<td nowrap colspan="3"><input 
			name="proposal/hatching_area" label="孵化面积" type="text" 
			class="input_css required" style="text-align:right" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/proposal/hatching_area" />" />平方米</td>
	</tr>
	
   <tr>
    <td align="right" width="20%" ><span class="color_red">*</span>入驻企业数：</td>
    <td width="30%"><input name="proposal/unit_people"  type="text"  
	class="input_text required" label="入驻企业数"  style="text-align:right" onfocus="InitInput.setNumber(this,7,0,0)"
	value="<x:out select="$xmlData/data/proposal/unit_people" />" /> 家
	</td>
	<td align="right">园区类型：</td>
<td colspan="3">
<c:set var="park_type_value"><x:out select="$xmlData/data/proposal/park_type_value" /></c:set> 
<cpt:select id="park_type" key="park_type"  value="${park_type_value}" className="required" label="园区类型"></cpt:select>
<input type="hidden"  name="proposal/park_type_value" value="${park_type_value}" />
<input type="hidden" name="proposal/park_type_name" value="<x:out select="$xmlData/data/proposal/park_type_name" />" />
</td>
    </tr>
	
	<tr>
		<td colspan="6">&nbsp;<span class="color_red">*</span>申报单位及园区简介（500字左右）</td>
	</tr>
	<tr>
		<td colspan="6"><textarea id="brief" name="proposal/brief" rows='7' cols='150' class="required textarea maxlength:500" label="申报单位及园区简介"><x:out select="$xmlData/data/proposal/brief" /></textarea>
		 <input type="hidden" name="proposal/brief_hidden" value="">
		</td>
	</tr>
	
</table>

<div class="t_bar">
	<span class="color_red">*</span>园区所获资质
</div>
<table id="tblQualifications" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="35%">资质名称</th>
			<th class="TblHead" align="center" width="35%">认定单位</th>
			<th class="TblHead" align="center" width="20%">认定时间</th>
			
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selQualifications"></td>
			<td align="center"><span name="qualifications|qualification[0]@seq_no">[index]</span></td>
			<td align="center"><input name="qualifications|qualification[0]|name" class="required input_text" maxlength=50 style="width: 90%" label="资质名称" value=""></td>
            <td align="center"><input name="qualifications|qualification[0]|org_name" class="required input_text" maxlength=50 style="width: 90%" label="资质名称" value=""></td>
            <td align="center"><input id="qualification_date_[0]" name="qualifications|qualification[0]|date" label="认定时间" value="" class="required input_text date"  /></td>
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/qualifications/qualification"
				var="qualification">

				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center"><input type="radio" class="radiobutton" name="selQualifications">
					</td>
					<td align="center"><span name="qualifications/qualification[${flag}${index}]@seq_no"><x:out select="$qualification/@seq_no" /></span>
					</td>
					<td align="center"><input name="qualifications/qualification[${flag}${index}]/name"
						class="required input_text " maxlength=50 style="width: 90%"
						label="资质名称" value="<x:out select="$qualification/name"/>" />
					</td>
					<td align="center"><input
						name="qualifications/qualification[${flag}${index}]/org_name"
						class="required input_text " maxlength=50 style="width: 90%"
						label="认定单位" value="<x:out select="$qualification/org_name"/>" />
					</td>
					<td align="center"><c:set var="date" scope="page">
							<x:out select="$qualification/date" />
						</c:set> <input value="${date}" label="授权时间"
						id="qualification_date_[${flag}${index}]"
						name="qualifications/qualification[${flag}${index}]/date"
						class="required date input_text "  />
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			<script type="text/javascript">
				showAllDateTag("tblQualifications");
			</script>
	</tbody>
</table>
<br>
<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="addNewRow('tblQualifications');showDateTag('tblQualifications');">
			<input class="button" name="cmdMovePrev" type=button value="上移"
			onclick="movePrev('tblQualifications','selQualifications')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblQualifications','selQualifications')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblQualifications','园区所获资质');">
		</td>
	</tr>
</table>
<script type="text/javascript">
$(document).ready (function() {
	showHidden('advant','09','other');
});
function showHidden(id1,sum,id2){

	if($("#"+id1+"_"+sum).attr("checked")=="checked"){
		$("#"+id2+"_"+sum).show();
		$("#"+id1+"_"+id2).addClass("required");
	}
	else{
		$("#"+id2+"_"+sum).hide();
		$("#"+id1+"_"+id2).removeClass("required");
		$("#"+id1+"_"+id2).val("");
	}
}
</script>